import request from '@/utils/request'

// 查询应用日志统计列表
export function listCounts(query) {
  return request({
    url: '/system/counts/list',
    method: 'get',
    params: query
  })
}

// 查询应用日志统计详细
export function getCounts(id) {
  return request({
    url: '/system/counts/' + id,
    method: 'get'
  })
}

// 新增应用日志统计
export function addCounts(data) {
  return request({
    url: '/system/counts',
    method: 'post',
    data: data
  })
}

// 修改应用日志统计
export function updateCounts(data) {
  return request({
    url: '/system/counts',
    method: 'put',
    data: data
  })
}

// 删除应用日志统计
export function delCounts(id) {
  return request({
    url: '/system/counts/' + id,
    method: 'delete'
  })
}
